package com.example.admin.yuejian21.Service;



import com.example.admin.yuejian21.Bean.AskList;
import com.example.admin.yuejian21.Bean.Master;
import com.example.admin.yuejian21.Bean.MasterDetail;
import com.example.admin.yuejian21.Bean.VideoList;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by Lee1 on 2017/10/23.
 */

public interface MasterService {
    @GET("lists/mod/master")
    Call<List<Master>> getMasterList();

    @GET("get/mod/{mod}/SessionID/{SessionID}/id/{id}")
    Call<MasterDetail> getMasterDetail(
            @Path("SessionID") String SessionID,
            @Path("mod") String mod,
            @Path("id") String id
    );
            /* 问大师列表
             * http://172.24.10.175/workout/api.php/lists/mod/masterfaq/master_id/2
             * */
    @POST("lists/mod/masterfaq/")
                    Call<List<AskList>> getAskList(@Query("master_id") String master_id);

    /**
     * 大师视频列表
     * http://172.24.10.175/workout/api.php/get/mod/master/related/1/id/1/map/mvideo
     * */
    @POST("get/mod/master/related/1/")
    Call<VideoList> getVideoList(@Query("id") String id, @Query("map") String mvideo
    );

}
